<template>
  <div class="not-found">
    <div class="not-found-content">
      <div class="error-code">404</div>
      <h1>页面未找到</h1>
      <p>抱歉，您访问的页面不存在或已被移除</p>
      <div class="actions">
        <el-button type="primary" @click="$router.push('/')">
          返回首页
        </el-button>
        <el-button @click="$router.back()">
          返回上页
        </el-button>
      </div>
    </div>
  </div>
</template>

<script setup>
// 无需JavaScript逻辑
</script>

<style scoped lang="scss">
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
}

.not-found-content {
  text-align: center;
  
  .error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--el-color-primary);
    line-height: 1;
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--el-text-color-primary);
  }
  
  p {
    font-size: 1.125rem;
    color: var(--el-text-color-regular);
    margin-bottom: 2rem;
  }
  
  .actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
}
</style>